// FileManager.h
#pragma once

#include <stdio.h>

namespace ANvDbg
{
    struct FileData
    {
        FileData()
        : content(nullptr)
        , file_len(0)
        {

        }

        ~FileData()
        {
            if (content != nullptr)
            {
                delete content;
                content = nullptr;
            }

            file_len = 0;
        }

        unsigned char* content;
        int file_len;
    };

    class FileManager
    {
    public:
        static bool LoadFile(const char* path, FileData& file_data);
    };
}
